package bt19022014_congty;

import java.util.ArrayList;
import java.util.List;

public class CongTyTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		DiaChi diaChi1 = new DiaChi("100c","Le Van Luong","Quan 7","Ho Chi Minh");
		DiaChi diaChi2 = new DiaChi("19","Nguyen Huu Tho","Quan 7","Ho Chi Minh");
		
		NguoiThan nguoiThan1 = new NguoiThan("Van A","1960","Cha");
		NguoiThan nguoiThan2 = new NguoiThan("Thi B","1960","Me");
		
		BangLuong bangLuong1 = new BangLuong(25,25,120);
		BangLuong bangLuong2 = new BangLuong(50,18,200);
		
		List<NguoiThan> dsNguoiThan = new ArrayList<NguoiThan>();
		dsNguoiThan.add(nguoiThan1);
		dsNguoiThan.add(nguoiThan2);
		
		NhanVien nhanVien1 = new NhanVien("MS001","Nguyen Van Tram Cam",diaChi1,bangLuong1,dsNguoiThan);
		NhanVien nhanVien2 = new NhanVien("MS002","Nguyen Van Muu Mo",diaChi2,bangLuong2,dsNguoiThan);
		
		List<NhanVien> dsNhanVien = new ArrayList<NhanVien>();
		dsNhanVien.add(nhanVien1);
		dsNhanVien.add(nhanVien2);
		
		CongTy caoGia = new CongTy("TNHH Cao Gia",diaChi1,dsNhanVien);
		
		//nhanVien1.inNhanVien();
		caoGia.inDSNV();
		System.out.println(caoGia.tinhTongLuong());
		
		NhanVien nhanVienMoi = new NhanVien("MS003","Cao Cuong Manh Me",diaChi1,bangLuong1,dsNguoiThan);
		
		caoGia.themNV(nhanVienMoi);
		
	}

}
